Skip to main content
Version: Upcoming

MarketHoursConfig

V8 Message Definiton

Expected trading day market schedule for each TradingPeriod and SecType. Including schedules for equity, futures, and options markets. The NMS schedule is the NYSE announced trading calendar. Other markets are from the listing exchange. Typically includes records for the current week, previous week and next week

METADATA

AttributeValue
Topic4440-product-status
MLink TokenClientLive
ProductSRLive
accessTypeSELECT
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'note should be ANYANY wildcard for the perTradingPeriod default MarketHoursConfig messages
ticker_tsenum - TickerSrcPRI'None'note should be ANYANY wildcard for the perTradingPeriod default MarketHoursConfig messages
ticker_tkVARCHAR(12)PRI''note should be ANYANY wildcard for the perTradingPeriod default MarketHoursConfig messages
secTypeenum - SpdrKeyTypePRI'None'
tradeDateDATEPRI'1900-01-01'
tradingPeriodenum - TradingPeriodPRI'None'note this trading period should be the same for all tradeDates for each tickersecType pair
timeZoneenum - SRTimeZone'None'note this does not have to match the associated TradingPeriod timeZone default is TradingPeriodTimeZone
marketDayTypeenum - MarketDayType'None'
srCloseMarkTimeTIME(6)'00:00:00.000000'SR Close Mark Time usually regular market close 5 minute C 5M
hasEarlySessionenum - YesNo'None'note early session can start the previous day
earlyPreOpenTimeTIME(6)'00:00:00.000000'early session preopen orders accepted
earlySessionOpenTimeTIME(6)'00:00:00.000000'early session market open
earlySessionCloseTimeTIME(6)'00:00:00.000000'early session market close
hasRegularSessionenum - YesNo'None'
regPreOpenTimeTIME(6)'00:00:00.000000'regular session preopen order accepted
regSessionOpenTimeTIME(6)'00:00:00.000000'regular session open
regSessionCloseTimeTIME(6)'00:00:00.000000'regular session close
hasLateSessionenum - YesNo'None'
latePreOpenTimeTIME(6)'00:00:00.000000'extended session preopen orders accepted
lateSessionOpenTimeTIME(6)'00:00:00.000000'extended session open
lateSessionCloseTimeTIME(6)'00:00:00.000000'extended session close
hasExEarlyCloseenum - YesNo'None'options have an early close on expiry day secType Option only
exEarlyCloseTimeTIME(6)'00:00:00.000000'expiry day early close time
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3
secType4
tradeDate5
tradingPeriod6

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRLive`.`MsgMarketHoursConfig`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a ENUM('None','Stock','Future','Option','MLeg') */
`secType` = 'None'
AND
/* Replace with a DATE */
`tradeDate` = '2022-01-01'
AND
/* Replace with a ENUM('None','NMS','NMS_EXT','NMS_GTH','CME_ES','CME_GRAIN','CME_TRSY','CME_ENGY','CME_METAL','CME_FX','CME_COMD','CME_CRYP','CME_DAIRY','CME_EQBTIC','CME_NKBTIC','CME_WEATHER','CME_TACO','CME_TPXBTIC','CME_FTSE','CME_BMD','CME_BOVESPA','CME_EQTMAC','CME_TAM','CME_OTHER','CFE','CFE_VX','ICE_US','ICE_EU','SCE','EU_ERX','EU_CBOE','EU_NXAM','EU_NXBR','EU_NXLS','EU_NXML','EU_NXOS','EU_NXP','EU_AT','EU_BE','EU_CH','EU_DE','EU_DK','EU_FI','EU_FR','EU_GB','EU_IE','EU_IT','EU_NL','EU_NO','EU_PT','EU_SE','EU_ES','EU_CZ','EU_HU','EU_PL','CA','NMS_ETH') */
`tradingPeriod` = 'None';

Doc Columns Query

SELECT * FROM SRLive.doccolumns WHERE TABLE_NAME='MarketHoursConfig' ORDER BY ordinal_position ASC;